﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace eventr.View
{
    public partial class MainMenu : UserControl
    {
        public event EventHandler ToggleSlideShow;
        public event EventHandler ZoomOut;
        public event EventHandler ZoomIn;
        public event EventHandler NavigateHome;
        public event EventHandler ToggleFullScreen;        

        public MainMenu()
        {
            InitializeComponent();
        }

        private void btnZoomOut_Click(object sender, RoutedEventArgs e)
        {
            if (ZoomOut != null)
            {
                ZoomOut(this, EventArgs.Empty);
            }
        }

        private void btnZoomIn_Click(object sender, RoutedEventArgs e)
        {
            if (ZoomIn != null)
            {
                ZoomIn(this, EventArgs.Empty);
            }
        }

        private void btnHome_Click(object sender, RoutedEventArgs e)
        {
            if (NavigateHome != null)
            {
                NavigateHome(this, EventArgs.Empty);
            }
        }

        private void btnFullScreen_Click(object sender, RoutedEventArgs e)
        {
            if (ToggleFullScreen != null)
            {
                ToggleFullScreen(this, EventArgs.Empty);
            }
        }

        private void btnSlideShow_Click(object sender, RoutedEventArgs e)
        {
            if (ToggleSlideShow != null)
            {                
                ToggleSlideShow(this, EventArgs.Empty);
            }
        }

        private void btnIE_Click(object sender, RoutedEventArgs e)
        {
            ie8popup.Show();
        }
    }
}
